package com.kin.tools.impl;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.kin.tools.IToolsService;


@Service("toolsService")
public class Tools implements IToolsService{
	
	@Override
	public boolean vilidateLoginInfo(String username,String password){
		
		if(username.equals("")&&password.equals("")&&username == ""&&password == "")
		{
			return false;
		}
		else
			return true;	
	}
	
	@Override
	public JSONObject stringToJsonObject(String str) {
		// TODO Auto-generated method stub
		JSONObject jsonObject = JSONObject.parseObject(str);
		return jsonObject;
	}

}
